﻿using System;

namespace EventAndDelegate_
{
    class Nhapphim
    {
        public delegate void NhapphimHandler(Nhapphim sender,char ch);
        public event NhapphimHandler Gophim;
        
        public String chuoi = "";
        public void run()
        {
            while (true)
            {
                Console.WriteLine("Nhap vao 1 phim");
                char ch = Console.ReadKey().KeyChar;
                chuoi += ch.ToString();
                Console.WriteLine();                
                Gophim(this,ch);
            }
        }
    }
}
